Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Facing problem with tomahawk <t:inputFileUpload> component

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am using tomahawk <t:inputFileUpload> component to upload files(Photos).
But when i select a file (image file with extension .jpeg, .gif etc) to upload the photo, then the other valuechangelisteners & the Partial triggers are not firing. i.e. when the upload file path is selected, upon selecting one value from one dropdown, another dropdown is not getting populated i.e. the valuechangelisteners are not getting called.


Is this the issue with the Tomahawk component or could be another problem???

Any assistance ?

Rgds,
Rax
 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Rax,

Post your code. Let's have a look at it. Perhaps something else is going wrong.

cheers
Darryl
 
Rax Malhotra
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JSPX Code: Following is the Code used for thr component in the jspx page
-------------


After selecting the image to be uploaded, when i select one value from one dropdown it should fire valuechangelistener and another
dropdown should get populated with the value based on the selection in the first drop down.
But i m getting a javascript error saying that "The Character '>' was expected"and after that no partialtriggers and valuechangelisteners are firing.

Thanks
Rax
 
Darryl Nortje
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks like there are a couple of errors here....

1) value="#backing_dummy_example.uploadedFilePath}"
--> looks like you're missing an open brace after the value="#

2) in your original post you said that the value change listeners were not firing when you select a file to upload, but you're not setting a value change listener in the definition of your upload file component...

you would need (I stand to be corrected because I'm not looking at the API for inputFileUpload) an onchange attribute in your component definition in order for the event to get fired...

By the way, What is a Partial Trigger?

Is the behaviour you want that when a file is selected for upload that something should happen?
 
Rax Malhotra
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Darryl,

The first error you are talking about (missing an open brace) is just a typing mistake and for the second one, the value change listeners are set for other components included in the JSPX page, i.e. after i select an image to upload, i am selecting dropdown1, onchange of which it should populate other dropdown2 values based on the selection from dropdown1.

 
What kind of corn soldier are you? And don't say "kernel" - that's only for this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic