Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Newbie JSF question re: parameters

 
K Clark
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have what is most likely a really simple problem.

One page one I ask the user for a filename that I will use later. They hit submit and I'm able to output the filename on page2. The problem occurs when I try and pass the value of that to something else. Like the following



No matter how I try I just can't seem to be able to pass fileName.name to value, what am I doing wrong?

Thanks
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, "K"!

I don't know exactly how this "b:view" tag is supposed to work, but assuming it behaves like most JSF, the proper syntax would be:


Which would reference the "name" property in the backing bean named "fileName".
 
K Clark
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's how I'm doing it :/ Unforunatly what's happening is when I try and pass the value like this

<b:view id="view" filename="#{fileName.name}"/>" </b:view>

filename is treating #{fileName.name} as if it's the value and not trying to get the value of #{fileName.name}
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dunno. I don't know how the "b:view" tag is supposed to work or what defines it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic