problem with using style sheets in faces frame work.

2007-05-22 Thread shree


hi all,
i am using jsf frame work.
i am trying to apply background-image for a page using style sheets.
my code for style class is like below.

.bg{
background-image:url(image.jpg);
}

This is not getting applied to my jsf page.
but it is working fine for an html page.

how can i solve this problem.
some body please help me.

thanks in advace,
shree.
 
-- 
View this message in context: 
http://www.nabble.com/problem-with-using-style-sheets-in-faces-frame-work.-tf3795181.html#a10734373
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: problem with using style sheets in faces frame work.

2007-05-22 Thread shree


my images r in different folder.
i hv provided the correct path only...like below

background-image:url(/resources/images/image.jpg);

with quotations also it is not getting applied.

-- 
View this message in context: 
http://www.nabble.com/problem-with-using-style-sheets-in-faces-frame-work.-tf3795181.html#a10735085
Sent from the MyFaces - Users mailing list archive at Nabble.com.



regarding h:dataTable

2007-04-12 Thread shree

hi all,
can any one please post a complete example for how to use h:dataTable to
iterate the values from the bean.
I have been searching the net for that.but the code they have given is not
clear.

Please some body help me.

thanks in advance,
Shree.
-- 
View this message in context: 
http://www.nabble.com/regarding-%3Ch%3AdataTable%3E-tf3563628.html#a9953570
Sent from the MyFaces - Users mailing list archive at Nabble.com.



RE: regarding h:dataTable

2007-04-12 Thread shree


Thank you very much Marco.the link you have provided is too good.

-- 
View this message in context: 
http://www.nabble.com/regarding-%3Ch%3AdataTable%3E-tf3563628.html#a9957216
Sent from the MyFaces - Users mailing list archive at Nabble.com.



how can i know which link has been clicked by user??

2007-04-10 Thread shree

hi all,
i am displaying various links of tutorials in a JSF page using
h:commandLink.
what i need to do is,when ever a user clicks a link,i hv to display
corresponding details of that clicked link in another jsf page.but my
problem, here is how to pass the value of the clicked one to the bean.

here is the code snippet.
%ArrayList values = new ArrayList();
values = a.getPendingList();
for ( j = 0; j  values.size(); j = j + 6) {
%
h:commandLink action=#{approveBean.action} styleClass=link
f:verbatim%=values.get(j+1)%/f:verbatim
/h:commandLink
%}%

i want to pass corresponding values(j+1) to the bean .
i hv been trying to do this since 3 days.
somebody please help me.

thanks in advance,
Shree.
-- 
View this message in context: 
http://www.nabble.com/how-can-i-know-which-link-has-been-clicked-by-user---tf3552147.html#a9916936
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: how can i know which link has been clicked by user??

2007-04-10 Thread shree

thanks for the reply David.
i have already  tried  using f:param value=%=value%
but f:param tag is not allowing expressions.


David Delbecq-2 wrote:
 
 Arg, mixing JSF and scriptlet? Be prepared for problems, it's like
 mixing JSF and JSTL in a JSP :)
 
 The action itself has no way to know which button was used to invoke it.
 However, you have various possibilities
 
 1) use a f:param to pass named parameter JSF, you can then query this
 parameter from the JSF context
 eg:
 
 h:commandLink action=#{approveBean.action} styleClass=link
 f:param name=selectedItemEntry value=./
 f:verbatimsome link name/f:verbatim
 /h:commandLink
 
 2) Add a listener to your action, the listener will be called with an
 event object which allows you to retrieve the commandLink object user
 clicked on.
 
 PS: why do you do the iteration in a scriptlet rather than using a JSF
 datatable to iterate of your items?
 
 En l'instant précis du 10/04/07 12:13, shree s'exprimait en ces termes:
 hi all,
 i am displaying various links of tutorials in a JSF page using
 h:commandLink.
 what i need to do is,when ever a user clicks a link,i hv to display
 corresponding details of that clicked link in another jsf page.but my
 problem, here is how to pass the value of the clicked one to the bean.

 here is the code snippet.
 %ArrayList values = new ArrayList();
 values = a.getPendingList();
 for ( j = 0; j  values.size(); j = j + 6) {
 %
 h:commandLink action=#{approveBean.action} styleClass=link
 f:verbatim%=values.get(j+1)%/f:verbatim
 /h:commandLink
 %}%

 i want to pass corresponding values(j+1) to the bean .
 i hv been trying to do this since 3 days.
 somebody please help me.

 thanks in advance,
 Shree.
   
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-can-i-know-which-link-has-been-clicked-by-user---tf3552147.html#a9917201
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: how can i know which link has been clicked by user??

2007-04-10 Thread shree

yes .it allows like f:param name=a value=#{bean.value}/or value=abc.
but i want to pass the value like f:param name=a value=%=value%/ in
scriplet tags.

En l'instant précis du 10/04/07 12:35, shree s'exprimait en ces termes:
 thanks for the reply David.
 i have already  tried  using f:param value=%=value%
 but f:param tag is not allowing expressions.
   
f:param value is allowing EL expressions.

-- 
View this message in context: 
http://www.nabble.com/how-can-i-know-which-link-has-been-clicked-by-user---tf3552147.html#a9917816
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: how can i know which link has been clicked by user??

2007-04-10 Thread shree

Exactly.thats true.
but  I am asking how to achieve such functionality without using scriplet in
the middle??
is it possible with JSF or should i need to use simple java script or AJAX.



JSF has a 6 phases lifecycle, JSP only has one phase. Your scriptlet
will be evaluated only during the JSP execution. Be aware that JSF tags
do evaluate their body only when creating the view. After that, JSF tags
are not used anymore, the root JSF tag just handle the 'render' of child
component, independent of the JSP content. That's why mixing JSF and
JSTL or scriptlets is a bad thing.


-- 
View this message in context: 
http://www.nabble.com/how-can-i-know-which-link-has-been-clicked-by-user---tf3552147.html#a9918792
Sent from the MyFaces - Users mailing list archive at Nabble.com.