issue with p:stack in EL interpretation

UI Components for JSF
Post Reply
G-rom
Posts: 83
Joined: 16 Mar 2010, 16:20

19 Mar 2010, 18:18

Me again :p (PF breaker gold medal 8-) )

just tested p:stack with snapshot from 18 march and found an issue in EL lecture for icons.
instead of

Code: Select all

http://localhost:8080/ortho/javax.faces.resource/fav_tele_on.png.jsf?ln=images
it s giving me

Code: Select all

http://localhost:8080/ortho/ortho/javax.faces.resource/fav_tele_on.png.jsf?ln=images
when using

Code: Select all

	<p:stack icon="#{resource['images:stack.png']}" >
		<p:stackItem icon="#{resource['images:fav_ca.png']}" label="Dossiers et CA" url="" />
		<p:stackItem icon="#{resource['images:fav_mouv.png']}" label="Mouvement de stock" url="" />
		<p:stackItem icon="#{resource['images:fav_panier.png']}" label="Panier" url="" />
		<p:stackItem icon="#{resource['images:fav_patients.png']}" label="Dossiers et patients" url="" />
		<p:stackItem icon="#{resource['images:fav_rech_art.png']}" label="Rechercher un article" url="" />
		<p:stackItem icon="#{resource['images:fav_rech_cde.png']}" label="Rechercher une commande" url="" />
		<p:stackItem icon="#{resource['images:fav_tele.png']}" label="Télétransmission" url="" />
	</p:stack></div>

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

19 Mar 2010, 18:46

Hmm,

Can you try adding a slash;

Code: Select all

icon="/#{resource['images:fav_tele.png']}"

G-rom
Posts: 83
Joined: 16 Mar 2010, 16:20

19 Mar 2010, 19:28

on Monday, because it's... Week End !! but sure I'll ;)

Also I'll provide you screen because there are some bugs.
On start all stackitem are with big icons instead of littles in the stack.
And with my long description text there is wrapping but the black soft background goes just behind the first line and does not extend down to the second.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

20 Mar 2010, 00:09

Ok, waiting for that on monday then.

Have a nice weekend. :)

G-rom
Posts: 83
Joined: 16 Mar 2010, 16:20

22 Mar 2010, 16:26

For the EL, the "/" did not change anything.


About the stack take a look :
This is the stack at the first load. Images are natural size.
Image
instead of this wich I get after unstack restack
Image
and this are the comments with the background on one line instead of all lines.
Image

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

23 Mar 2010, 15:46

stack actually calls viewhandler getResourceURL api which adds context path and encodes the url, so since JSF 2.0's #{resource} utility also adds contextPath, I'm not sure about the solution. Do you require using #{resource} in this case?

For ui problem, which browser and operating system are you testing with? Is the result same across other browsers? I had a similar problem which I can't remember the solution.

G-rom
Posts: 83
Joined: 16 Mar 2010, 16:20

23 Mar 2010, 18:28

Yes I need it.

And for the stack those screens are on Firefox / Windows XP 32bit
Same problem with IE8 (except for the background it's worth :p second line is invisible and corners aren't rounded)

anatoly314
Posts: 34
Joined: 12 Feb 2014, 17:03

15 Jan 2015, 10:58

I have same issue with UI. On initial load pictures are too big if I load it in 'expanded = false' mode. In 'expanded = true' or after opening and closing, everything is ok.
I use Primefaces 5.1 with Apache MyFaces 2.0.2 and Websphere 8.0.0.9

User avatar
andyba
Expert Member
Posts: 2473
Joined: 31 Mar 2011, 16:27
Location: Steinfeld, near Bremen/Osnabrück, DE
Contact:

16 Jan 2015, 11:26

anatoly314 wrote:I have same issue with UI. On initial load pictures are too big if I load it in 'expanded = false' mode. In 'expanded = true' or after opening and closing, everything is ok.
Please do NOT resurrect dead Threads. This one is 5 years old and cannot possibly be related to your problem.
Please create a new Thread with sensible code snippets properly formatted in code tags illustrating what you are doing and describe what it is you are expecting.
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 39 guests