Fórumok
Open list with button
Luca Lupo, módosítva 11 év-val korábban
Open list with button
Regular Member Bejegyzések: 106 Csatlakozás dátuma: 2012.10.01. Legújabb bejegyzések
Hi Guys,
I'm still new of Liferay and I do not have a lot of experience, especially regarding the view layer. I hope you can help me.
I have to create a button (aui or not?) on a portlet (jsp side) inside a form. By clicking on this button i would like to open (as a sort of popup) a list of entries. Every row is a icon. I try to attach a picture to explain better.
https://dl.dropbox.com/u/1127848/Screen%20Shot%202012-10-07%20at%202.56.46%20PM.png
However, instead icon and text i will use only icon.
Do you have any idea about doing that?
Thanks,
Luca
I'm still new of Liferay and I do not have a lot of experience, especially regarding the view layer. I hope you can help me.
I have to create a button (aui or not?) on a portlet (jsp side) inside a form. By clicking on this button i would like to open (as a sort of popup) a list of entries. Every row is a icon. I try to attach a picture to explain better.
https://dl.dropbox.com/u/1127848/Screen%20Shot%202012-10-07%20at%202.56.46%20PM.png
However, instead icon and text i will use only icon.
Do you have any idea about doing that?
Thanks,
Luca
Paul ., módosítva 11 év-val korábban
RE: Open list with button (Válasz)
Liferay Master Bejegyzések: 522 Csatlakozás dátuma: 2011.08.29. Legújabb bejegyzések
The easiest way I could think of is to use the code similar to add_asset.jspf
There is varaible 'message' that contains the text. To render the list, the tag
Hope it helps
There is varaible 'message' that contains the text. To render the list, the tag
<liferay-ui:icon></liferay-ui:icon>
is used, you can pass the message
attribute as "empty" so the code will look something like: <liferay-ui:icon message="" src="<%= assetRendererFactory.getIconPath(renderRequest) %>" url="<%= taglibEditURL %>" />
Hope it helps
Luca Lupo, módosítva 11 év-val korábban
RE: Open list with button
Regular Member Bejegyzések: 106 Csatlakozás dátuma: 2012.10.01. Legújabb bejegyzések
Thanks Bart...I'm trying with that...but it seems that it is not possible to use custom images
Bart Simpson, módosítva 11 év-val korábban
RE: Open list with button
Liferay Master Bejegyzések: 522 Csatlakozás dátuma: 2011.08.29. Legújabb bejegyzések
In my comment above, the line
src="<%= assetRendererFactory.getIconPath(renderRequest) %>"
contains the source of icon image. You can change it to you'r custom value and should be able to get the custom image.
Tanweer Ahmed ., módosítva 1 év-val korábban
RE: Open list with button (Válasz)
Expert Bejegyzések: 322 Csatlakozás dátuma: 2010.03.11. Legújabb bejegyzésekLuca Lupo:
Thanks Bart...I'm trying with that...but it seems that it is not possible to use custom images
Hi Luca,
Try the below Tested solution
In JSP,
<liferay-ui:icon image="yourImage" message=" " url="put your url here" />
In Themes,
GoTo YourTheme/images/common And put the yourImage.png image there.
Make sure the image format is png.
Let me know if this helps.
Regards,
Tanweer,
LIUG Member