a problem for use p:print

UI Components for JSF
Post Reply
darkcloud8027
Posts: 102
Joined: 20 Jan 2010, 13:36

16 Feb 2010, 19:31

I try to print some components in my page by using p:print

could somebody tell me how to identify a component id in a page.
my code as following. but when I run it, then throw error

<h:panelGrid columns="2" style="width:600px" >
<h:panelGroup>
............
</h:panelGroup>
<h:panelGroup>
<h:commandButton id="btn" value="Print">
<p:printer target="dataPic" />
</h:commandButton>
</h:panelGroup>
</h:panelGroup>

<h:panelGrid id="chartPanel" columns="2" style="width:900px">
<p:graphicImage id="dataPic" value="#{wealthBean.displinechart}" />
</h:panelGroup>
....

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

18 Feb 2010, 14:58

What is the error you are getting?

darkcloud8027
Posts: 102
Joined: 20 Jan 2010, 13:36

18 Feb 2010, 19:44

cannot find dicPic

darkcloud8027
Posts: 102
Joined: 20 Jan 2010, 13:36

18 Feb 2010, 19:45

cannot find id dataPic

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

19 Feb 2010, 00:07

Can't replicate the issue.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 72 guests