Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create PopUp in jsf  RSS feed

 
gaurav bhardwajj
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

Can we create popup in jsf without using PanelDialog,as it has few limitations.

Best Regards,
Gaurav Bhardwaj
 
Kumar Gaurav
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use trinidad specification tags which supports javascript and with the help of javascript you can easily display a pop up.
 
gul kaur
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create dialog using launchDialog of requestContext.
 
prasad kolla
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use trinidad compenent tr:commandLink and set the property useWindow="true" and the action set as "dialog:XXXXXX".
 
Shivaji Byrapaneni
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
simply use like this

<hutputLink
binding="#{booking.lnkSlot2}"
id="lnkSlot2"
value="javascript:popupWindow('/BookingWeb/pages/bookedDet.jsf?bookingData=#{bookingList.value['onDate']}$2')">
<hutputText
id="otSlot2"
binding="#{booking.otSlot2}"
value ="#{bookingList.value['slot2']}">
</hutputText>
</hutputLink>

it worked for me...

ALL THE BEST
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!