You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Anuj Patel <an...@gmail.com> on 2009/06/29 23:20:09 UTC

Re: tr:inputFile with panelGroupLayout

Hi All,
I am using Trinidad-api and trinidad-impl version 1.2.10.  When using
tr:inputFile with in tr:panelGroupLayout, if the file size is too large then
the message that should be displayed for informing the user is not getting
displayed.  Following is the generated source;

 <br><br><span id="uploadPhoto:j_id141" class="af_panelGroupLayout"><scripttype
="text/javascript">var _locale='en';var _tLocale='en';</script><script
type="text/javascript"
src="/adf/jsLibs/resources/LocaleElements_en1_2_10.js?loc=en"></script><
table id="uploadPhoto:inputFileImg__xc_" class="af_inputFile" cellpadding="0"
cellspacing="0" border="0" summary=""><tr><td class="af_inputFile_label"
nowrap><span id="uploadPhoto:inputFileImg::icon" style="display:none;"><aname
="_msgAnc_uploadPhoto:inputFileImg" title="Error" class="AFErrorIconStyle"
>X</a></span></td><td valign="top" nowrap class="AFContentCell"><input id="uploadPhoto:inputFileImg"
name="uploadPhoto:inputFileImg" onchange="checkImageExtension(this);"
class="af_inputFile_content"
type="file"></td></tr><tr><td></td><td class="AFComponentMessageCell"><spanid
="uploadPhoto:inputFileImg::msg" class="OraInlineErrorText"></span></td></tr
></table>
As one may see in the above generated text, the span that should display the
message is turning out to have no value in it.  Also, the icon "X" does not
show up on the screen for some reason.

Following is my code snippet that is generating the above mentioned view
source when trying to upload a file bigger than allowable size;

*<tr:panelGroupLayout partialTriggers="uploadImgBtn deleteBtn">
                                                    <tr:inputFile
id="inputFileImg" onchange="validateFile(this);"
partialTriggers="uploadImgBtn deleteBtn" value="#{backingBean.imageFile}"
rendered="#{backingBean.imageFile==null}"/>
*

Is this a bug or am I missing something?  FYI, I get the same behaviour even
with version 1.2.9.  Although, in version 1.2.9 there is an exception
reported in the server log where as in 1.2.10 the exception does not get
logged in server log.

-Anuj

Re: tr:inputFile with panelGroupLayout

Posted by Matthias Wessendorf <ma...@apache.org>.
On Wed, Jul 1, 2009 at 10:46 PM, Anuj Patel<an...@gmail.com> wrote:
> It looks like the panelGroupLayout is the culprit here.  Because, even after
> I provided an id for the panelGroupLayout, the span remained unaltered.
>  i.e.  <span id="uploadPhoto:inputFileImg::msg" class="OraInlineErrorText"></span>
> Could someone confirm if this is a bug and if so can we create a JIRA issue
> for the same?

can you file a ticket ? Thanks!

-Matthias

> -Anuj
>
> On Mon, Jun 29, 2009 at 6:21 PM, Anuj Patel <an...@gmail.com> wrote:
>>
>> The span <span id="uploadPhoto:inputFileImg::msg"
>> class="OraInlineErrorText"></span>
>> already indicates who the message is for.  Besides, if this would have
>> been a problem, then my code wouldn't have worked in the scenario where I do
>> not have anything in the panelGroupLayout.
>> One of my other apps, also have similar functionality built with which I
>> am able to see the message when I try to upload file greater than allowable
>> size
>> Thanks,
>> Anuj
>> On Mon, Jun 29, 2009 at 5:33 PM, Mamallan Uthaman
>> <ma...@oracle.com> wrote:
>>>
>>> Hi Anuj,
>>>
>>> Could you please try using <tr:messages> to display any error message in
>>> the FacesContext? If you refer to Trinidad issue (Trinidad-607) that
>>> resolved this problem, the last comment states that the error message is
>>> stored in the FacesContext.
>>>
>>> Thanks
>>> Mamallan
>>>
>>> Anuj Patel wrote:
>>>>
>>>> Hi All,
>>>> I am using Trinidad-api and trinidad-impl version 1.2.10.  When using
>>>> tr:inputFile with in tr:panelGroupLayout, if the file size is too large then
>>>> the message that should be displayed for informing the user is not getting
>>>> displayed.  Following is the generated source;
>>>>   <br><br><span id="uploadPhoto:j_id141"
>>>> class="af_panelGroupLayout"><script type="text/javascript">var
>>>> _locale='en';var _tLocale='en';</script><script type="text/javascript"
>>>> src="/adf/jsLibs/resources/LocaleElements_en1_2_10.js?loc=en"></script><table
>>>> id="uploadPhoto:inputFileImg__xc_" class="af_inputFile" cellpadding="0"
>>>> cellspacing="0" border="0" summary=""><tr><td class="af_inputFile_label"
>>>> nowrap><span id="uploadPhoto:inputFileImg::icon" style="display:none;"><a
>>>> name="_msgAnc_uploadPhoto:inputFileImg" title="Error"
>>>> class="AFErrorIconStyle">X</a></span></td><td valign="top" nowrap
>>>> class="AFContentCell"><input id="uploadPhoto:inputFileImg"
>>>> name="uploadPhoto:inputFileImg" onchange="checkImageExtension(this);"
>>>> class="af_inputFile_content" type="file"></td></tr><tr><td></td><td
>>>> class="AFComponentMessageCell"><span id="uploadPhoto:inputFileImg::msg"
>>>> class="OraInlineErrorText"></span></td></tr></table>
>>>> As one may see in the above generated text, the span that should display
>>>> the message is turning out to have no value in it.  Also, the icon "X" does
>>>> not show up on the screen for some reason.
>>>>  Following is my code snippet that is generating the above mentioned
>>>> view source when trying to upload a file bigger than allowable size;
>>>>  /<tr:panelGroupLayout partialTriggers="uploadImgBtn deleteBtn">
>>>>                                                    <tr:inputFile
>>>> id="inputFileImg" onchange="validateFile(this);"
>>>> partialTriggers="uploadImgBtn deleteBtn" value="#{backingBean.imageFile}"
>>>> rendered="#{backingBean.imageFile==null}"/>
>>>> /                                                    Is this a bug or am
>>>> I missing something?  FYI, I get the same behaviour even with version 1.2.9.
>>>>  Although, in version 1.2.9 there is an exception reported in the server log
>>>> where as in 1.2.10 the exception does not get logged in server log.
>>>> -Anuj
>>
>
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Re: tr:inputFile with panelGroupLayout

Posted by Anuj Patel <an...@gmail.com>.
I just want the default message that I am supposed to get when the file size
is greater then allowed size.  It is logging exception, but along with that
it is supposed to set exception message with inputFile.
-Anuj

On Mon, Jul 13, 2009 at 4:40 PM, Matt Cooper <mc...@apache.org> wrote:

> Is the message supposed to be generated automatically or are you queuing
> the message yourself?  If inputFile doesn't know to give such an error
> message, it might just be logging an exception and what you are seeing is
> expected behavior.  Hopefully someone that uses inputFile can comment
> further if this is an issue with automatic queuing.
>
> Regards,
> Matt
>
>
> On Mon, Jul 13, 2009 at 5:07 PM, Anuj Patel <an...@gmail.com>wrote:
>
>> Hey Matt,
>> Here under is the generated source after I have tried uploading file which
>> is beyond allowable size;
>>
>> <td class="AFComponentMessageCell"><span id="inputFileImg::msg" class="OraInlineErrorText"></span></td>
>>
>>
>> As you see in there, the value of inputFileImg::msg is missing.  Also, may
>> be the id for panelGroupLayout is missing with the message component?
>> So, may be neither did the message get assigned to the correct component
>> nor did the message get generated at all?
>>
>> -Anuj
>>
>>
>> On Mon, Jul 13, 2009 at 3:47 PM, Matt Cooper <mc...@apache.org> wrote:
>>
>>> Hi Anuj,
>>>
>>> Your test page seems to be okay.  In your first email, there is this
>>> style:
>>>
>>> display:none
>>>
>>> Perhaps either the faces message didn't get assigned to the inputFile
>>> component or maybe the inputFile doesn't know how to render when faces
>>> messages are associated with it?
>>>
>>> Regards,
>>> Matt
>>>
>>>
>>> On Mon, Jul 13, 2009 at 3:51 PM, Anuj Patel <an...@gmail.com>wrote:
>>>
>>>> Hi Matt,
>>>> Attached is the page I created to reproduce this problem.  I haven't
>>>> used any other component library nor is there any custom HTML on the page.
>>>> Yet, the problem is easily reproduced.
>>>> If you find something fishy in the code, then please feel free to point
>>>> it out.
>>>>
>>>> -Anuj
>>>>
>>>>
>>>>
>>>> On Tue, Jul 7, 2009 at 9:57 AM, Matt Cooper <mc...@apache.org> wrote:
>>>>
>>>>> The behavior described sounds like there might be some invalid HTML on
>>>>> the page.  If you have any other component libraries or any custom HTML in
>>>>> this page, I would recommend trying to remove them temporarily to isolate
>>>>> the problem.  If certain pieces of the page are not showing up but their
>>>>> content is present in the raw page source, this is typically caused by
>>>>> mismatching start/end elements.
>>>>>
>>>>> Regards,
>>>>> Matt
>>>>>
>>>>>
>>>>> On Wed, Jul 1, 2009 at 2:46 PM, Anuj Patel <an...@gmail.com>wrote:
>>>>>
>>>>>> It looks like the panelGroupLayout is the culprit here.  Because, even
>>>>>> after I provided an id for the panelGroupLayout, the span remained
>>>>>> unaltered.  i.e.  *<**span** id**=**"uploadPhoto:inputFileImg::msg" *
>>>>>> *class**=**"OraInlineErrorText"**></**span**>** * *
>>>>>> *
>>>>>> *Could someone confirm if this is a bug and if so can we create a
>>>>>> JIRA issue for the same?*
>>>>>>
>>>>>> *-Anuj
>>>>>> *
>>>>>>
>>>>>> On Mon, Jun 29, 2009 at 6:21 PM, Anuj Patel <an...@gmail.com>wrote:
>>>>>>
>>>>>>> The span *<**span** id**=**"uploadPhoto:inputFileImg::msg" **class**
>>>>>>> =**"OraInlineErrorText"**></**span**>** *
>>>>>>> already indicates who the message is for.  Besides, if this would
>>>>>>> have been a problem, then my code wouldn't have worked in the scenario where
>>>>>>> I do not have anything in the panelGroupLayout.
>>>>>>>
>>>>>>> One of my other apps, also have similar functionality built with
>>>>>>> which I am able to see the message when I try to upload file greater than
>>>>>>> allowable size
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Anuj
>>>>>>>
>>>>>>> On Mon, Jun 29, 2009 at 5:33 PM, Mamallan Uthaman <
>>>>>>> mamallan.uthaman@oracle.com> wrote:
>>>>>>>
>>>>>>>> Hi Anuj,
>>>>>>>>
>>>>>>>> Could you please try using <tr:messages> to display any error
>>>>>>>> message in the FacesContext? If you refer to Trinidad issue (Trinidad-607)
>>>>>>>> that resolved this problem, the last comment states that the error message
>>>>>>>> is stored in the FacesContext.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Mamallan
>>>>>>>>
>>>>>>>>
>>>>>>>> Anuj Patel wrote:
>>>>>>>>
>>>>>>>>> Hi All,
>>>>>>>>> I am using Trinidad-api and trinidad-impl version 1.2.10.  When
>>>>>>>>> using tr:inputFile with in tr:panelGroupLayout, if the file size is too
>>>>>>>>> large then the message that should be displayed for informing the user is
>>>>>>>>> not getting displayed.  Following is the generated source;
>>>>>>>>>   <br><br><span id="uploadPhoto:j_id141"
>>>>>>>>> class="af_panelGroupLayout"><script type="text/javascript">var
>>>>>>>>> _locale='en';var _tLocale='en';</script><script type="text/javascript"
>>>>>>>>> src="/adf/jsLibs/resources/LocaleElements_en1_2_10.js?loc=en"></script><table
>>>>>>>>> id="uploadPhoto:inputFileImg__xc_" class="af_inputFile" cellpadding="0"
>>>>>>>>> cellspacing="0" border="0" summary=""><tr><td class="af_inputFile_label"
>>>>>>>>> nowrap><span id="uploadPhoto:inputFileImg::icon" style="display:none;"><a
>>>>>>>>> name="_msgAnc_uploadPhoto:inputFileImg" title="Error"
>>>>>>>>> class="AFErrorIconStyle">X</a></span></td><td valign="top" nowrap
>>>>>>>>> class="AFContentCell"><input id="uploadPhoto:inputFileImg"
>>>>>>>>> name="uploadPhoto:inputFileImg" onchange="checkImageExtension(this);"
>>>>>>>>> class="af_inputFile_content" type="file"></td></tr><tr><td></td><td
>>>>>>>>> class="AFComponentMessageCell"><span id="uploadPhoto:inputFileImg::msg"
>>>>>>>>> class="OraInlineErrorText"></span></td></tr></table>
>>>>>>>>> As one may see in the above generated text, the span that should
>>>>>>>>> display the message is turning out to have no value in it.  Also, the icon
>>>>>>>>> "X" does not show up on the screen for some reason.
>>>>>>>>>  Following is my code snippet that is generating the above
>>>>>>>>> mentioned view source when trying to upload a file bigger than allowable
>>>>>>>>> size;
>>>>>>>>>  /<tr:panelGroupLayout partialTriggers="uploadImgBtn deleteBtn">
>>>>>>>>>                                                    <tr:inputFile
>>>>>>>>> id="inputFileImg" onchange="validateFile(this);"
>>>>>>>>> partialTriggers="uploadImgBtn deleteBtn" value="#{backingBean.imageFile}"
>>>>>>>>> rendered="#{backingBean.imageFile==null}"/>
>>>>>>>>> /                                                    Is this a bug
>>>>>>>>> or am I missing something?  FYI, I get the same behaviour even with version
>>>>>>>>> 1.2.9.  Although, in version 1.2.9 there is an exception reported in the
>>>>>>>>> server log where as in 1.2.10 the exception does not get logged in server
>>>>>>>>> log.
>>>>>>>>> -Anuj
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>

Re: tr:inputFile with panelGroupLayout

Posted by Matt Cooper <mc...@apache.org>.
Is the message supposed to be generated automatically or are you queuing the
message yourself?  If inputFile doesn't know to give such an error message,
it might just be logging an exception and what you are seeing is expected
behavior.  Hopefully someone that uses inputFile can comment further if this
is an issue with automatic queuing.

Regards,
Matt

On Mon, Jul 13, 2009 at 5:07 PM, Anuj Patel <an...@gmail.com> wrote:

> Hey Matt,
> Here under is the generated source after I have tried uploading file which
> is beyond allowable size;
>
> <td class="AFComponentMessageCell"><span id="inputFileImg::msg" class="OraInlineErrorText"></span></td>
>
>
> As you see in there, the value of inputFileImg::msg is missing.  Also, may
> be the id for panelGroupLayout is missing with the message component?
> So, may be neither did the message get assigned to the correct component
> nor did the message get generated at all?
>
> -Anuj
>
>
> On Mon, Jul 13, 2009 at 3:47 PM, Matt Cooper <mc...@apache.org> wrote:
>
>> Hi Anuj,
>>
>> Your test page seems to be okay.  In your first email, there is this
>> style:
>>
>> display:none
>>
>> Perhaps either the faces message didn't get assigned to the inputFile
>> component or maybe the inputFile doesn't know how to render when faces
>> messages are associated with it?
>>
>> Regards,
>> Matt
>>
>>
>> On Mon, Jul 13, 2009 at 3:51 PM, Anuj Patel <an...@gmail.com>wrote:
>>
>>> Hi Matt,
>>> Attached is the page I created to reproduce this problem.  I haven't used
>>> any other component library nor is there any custom HTML on the page.  Yet,
>>> the problem is easily reproduced.
>>> If you find something fishy in the code, then please feel free to point
>>> it out.
>>>
>>> -Anuj
>>>
>>>
>>>
>>> On Tue, Jul 7, 2009 at 9:57 AM, Matt Cooper <mc...@apache.org> wrote:
>>>
>>>> The behavior described sounds like there might be some invalid HTML on
>>>> the page.  If you have any other component libraries or any custom HTML in
>>>> this page, I would recommend trying to remove them temporarily to isolate
>>>> the problem.  If certain pieces of the page are not showing up but their
>>>> content is present in the raw page source, this is typically caused by
>>>> mismatching start/end elements.
>>>>
>>>> Regards,
>>>> Matt
>>>>
>>>>
>>>> On Wed, Jul 1, 2009 at 2:46 PM, Anuj Patel <an...@gmail.com>wrote:
>>>>
>>>>> It looks like the panelGroupLayout is the culprit here.  Because, even
>>>>> after I provided an id for the panelGroupLayout, the span remained
>>>>> unaltered.  i.e.  *<**span** id**=**"uploadPhoto:inputFileImg::msg" **
>>>>> class**=**"OraInlineErrorText"**></**span**>** * *
>>>>> *
>>>>> *Could someone confirm if this is a bug and if so can we create a JIRA
>>>>> issue for the same?*
>>>>>
>>>>> *-Anuj
>>>>> *
>>>>>
>>>>> On Mon, Jun 29, 2009 at 6:21 PM, Anuj Patel <an...@gmail.com>wrote:
>>>>>
>>>>>> The span *<**span** id**=**"uploadPhoto:inputFileImg::msg" **class**=
>>>>>> **"OraInlineErrorText"**></**span**>** *
>>>>>> already indicates who the message is for.  Besides, if this would have
>>>>>> been a problem, then my code wouldn't have worked in the scenario where I do
>>>>>> not have anything in the panelGroupLayout.
>>>>>>
>>>>>> One of my other apps, also have similar functionality built with which
>>>>>> I am able to see the message when I try to upload file greater than
>>>>>> allowable size
>>>>>>
>>>>>> Thanks,
>>>>>> Anuj
>>>>>>
>>>>>> On Mon, Jun 29, 2009 at 5:33 PM, Mamallan Uthaman <
>>>>>> mamallan.uthaman@oracle.com> wrote:
>>>>>>
>>>>>>> Hi Anuj,
>>>>>>>
>>>>>>> Could you please try using <tr:messages> to display any error message
>>>>>>> in the FacesContext? If you refer to Trinidad issue (Trinidad-607) that
>>>>>>> resolved this problem, the last comment states that the error message is
>>>>>>> stored in the FacesContext.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Mamallan
>>>>>>>
>>>>>>>
>>>>>>> Anuj Patel wrote:
>>>>>>>
>>>>>>>> Hi All,
>>>>>>>> I am using Trinidad-api and trinidad-impl version 1.2.10.  When
>>>>>>>> using tr:inputFile with in tr:panelGroupLayout, if the file size is too
>>>>>>>> large then the message that should be displayed for informing the user is
>>>>>>>> not getting displayed.  Following is the generated source;
>>>>>>>>   <br><br><span id="uploadPhoto:j_id141"
>>>>>>>> class="af_panelGroupLayout"><script type="text/javascript">var
>>>>>>>> _locale='en';var _tLocale='en';</script><script type="text/javascript"
>>>>>>>> src="/adf/jsLibs/resources/LocaleElements_en1_2_10.js?loc=en"></script><table
>>>>>>>> id="uploadPhoto:inputFileImg__xc_" class="af_inputFile" cellpadding="0"
>>>>>>>> cellspacing="0" border="0" summary=""><tr><td class="af_inputFile_label"
>>>>>>>> nowrap><span id="uploadPhoto:inputFileImg::icon" style="display:none;"><a
>>>>>>>> name="_msgAnc_uploadPhoto:inputFileImg" title="Error"
>>>>>>>> class="AFErrorIconStyle">X</a></span></td><td valign="top" nowrap
>>>>>>>> class="AFContentCell"><input id="uploadPhoto:inputFileImg"
>>>>>>>> name="uploadPhoto:inputFileImg" onchange="checkImageExtension(this);"
>>>>>>>> class="af_inputFile_content" type="file"></td></tr><tr><td></td><td
>>>>>>>> class="AFComponentMessageCell"><span id="uploadPhoto:inputFileImg::msg"
>>>>>>>> class="OraInlineErrorText"></span></td></tr></table>
>>>>>>>> As one may see in the above generated text, the span that should
>>>>>>>> display the message is turning out to have no value in it.  Also, the icon
>>>>>>>> "X" does not show up on the screen for some reason.
>>>>>>>>  Following is my code snippet that is generating the above mentioned
>>>>>>>> view source when trying to upload a file bigger than allowable size;
>>>>>>>>  /<tr:panelGroupLayout partialTriggers="uploadImgBtn deleteBtn">
>>>>>>>>                                                    <tr:inputFile
>>>>>>>> id="inputFileImg" onchange="validateFile(this);"
>>>>>>>> partialTriggers="uploadImgBtn deleteBtn" value="#{backingBean.imageFile}"
>>>>>>>> rendered="#{backingBean.imageFile==null}"/>
>>>>>>>> /                                                    Is this a bug
>>>>>>>> or am I missing something?  FYI, I get the same behaviour even with version
>>>>>>>> 1.2.9.  Although, in version 1.2.9 there is an exception reported in the
>>>>>>>> server log where as in 1.2.10 the exception does not get logged in server
>>>>>>>> log.
>>>>>>>> -Anuj
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>

Re: tr:inputFile with panelGroupLayout

Posted by Anuj Patel <an...@gmail.com>.
Hey Matt,
Here under is the generated source after I have tried uploading file which
is beyond allowable size;

<td class="AFComponentMessageCell"><span id="inputFileImg::msg"
class="OraInlineErrorText"></span></td>


As you see in there, the value of inputFileImg::msg is missing.  Also, may
be the id for panelGroupLayout is missing with the message component?
So, may be neither did the message get assigned to the correct component nor
did the message get generated at all?

-Anuj

On Mon, Jul 13, 2009 at 3:47 PM, Matt Cooper <mc...@apache.org> wrote:

> Hi Anuj,
>
> Your test page seems to be okay.  In your first email, there is this style:
>
> display:none
>
> Perhaps either the faces message didn't get assigned to the inputFile
> component or maybe the inputFile doesn't know how to render when faces
> messages are associated with it?
>
> Regards,
> Matt
>
>
> On Mon, Jul 13, 2009 at 3:51 PM, Anuj Patel <an...@gmail.com>wrote:
>
>> Hi Matt,
>> Attached is the page I created to reproduce this problem.  I haven't used
>> any other component library nor is there any custom HTML on the page.  Yet,
>> the problem is easily reproduced.
>> If you find something fishy in the code, then please feel free to point it
>> out.
>>
>> -Anuj
>>
>>
>>
>> On Tue, Jul 7, 2009 at 9:57 AM, Matt Cooper <mc...@apache.org> wrote:
>>
>>> The behavior described sounds like there might be some invalid HTML on
>>> the page.  If you have any other component libraries or any custom HTML in
>>> this page, I would recommend trying to remove them temporarily to isolate
>>> the problem.  If certain pieces of the page are not showing up but their
>>> content is present in the raw page source, this is typically caused by
>>> mismatching start/end elements.
>>>
>>> Regards,
>>> Matt
>>>
>>>
>>> On Wed, Jul 1, 2009 at 2:46 PM, Anuj Patel <an...@gmail.com>wrote:
>>>
>>>> It looks like the panelGroupLayout is the culprit here.  Because, even
>>>> after I provided an id for the panelGroupLayout, the span remained
>>>> unaltered.  i.e.  *<**span** id**=**"uploadPhoto:inputFileImg::msg" **
>>>> class**=**"OraInlineErrorText"**></**span**>** * *
>>>> *
>>>> *Could someone confirm if this is a bug and if so can we create a JIRA
>>>> issue for the same?*
>>>>
>>>> *-Anuj
>>>> *
>>>>
>>>> On Mon, Jun 29, 2009 at 6:21 PM, Anuj Patel <an...@gmail.com>wrote:
>>>>
>>>>> The span *<**span** id**=**"uploadPhoto:inputFileImg::msg" **class**=*
>>>>> *"OraInlineErrorText"**></**span**>** *
>>>>> already indicates who the message is for.  Besides, if this would have
>>>>> been a problem, then my code wouldn't have worked in the scenario where I do
>>>>> not have anything in the panelGroupLayout.
>>>>>
>>>>> One of my other apps, also have similar functionality built with which
>>>>> I am able to see the message when I try to upload file greater than
>>>>> allowable size
>>>>>
>>>>> Thanks,
>>>>> Anuj
>>>>>
>>>>> On Mon, Jun 29, 2009 at 5:33 PM, Mamallan Uthaman <
>>>>> mamallan.uthaman@oracle.com> wrote:
>>>>>
>>>>>> Hi Anuj,
>>>>>>
>>>>>> Could you please try using <tr:messages> to display any error message
>>>>>> in the FacesContext? If you refer to Trinidad issue (Trinidad-607) that
>>>>>> resolved this problem, the last comment states that the error message is
>>>>>> stored in the FacesContext.
>>>>>>
>>>>>> Thanks
>>>>>> Mamallan
>>>>>>
>>>>>>
>>>>>> Anuj Patel wrote:
>>>>>>
>>>>>>> Hi All,
>>>>>>> I am using Trinidad-api and trinidad-impl version 1.2.10.  When using
>>>>>>> tr:inputFile with in tr:panelGroupLayout, if the file size is too large then
>>>>>>> the message that should be displayed for informing the user is not getting
>>>>>>> displayed.  Following is the generated source;
>>>>>>>   <br><br><span id="uploadPhoto:j_id141"
>>>>>>> class="af_panelGroupLayout"><script type="text/javascript">var
>>>>>>> _locale='en';var _tLocale='en';</script><script type="text/javascript"
>>>>>>> src="/adf/jsLibs/resources/LocaleElements_en1_2_10.js?loc=en"></script><table
>>>>>>> id="uploadPhoto:inputFileImg__xc_" class="af_inputFile" cellpadding="0"
>>>>>>> cellspacing="0" border="0" summary=""><tr><td class="af_inputFile_label"
>>>>>>> nowrap><span id="uploadPhoto:inputFileImg::icon" style="display:none;"><a
>>>>>>> name="_msgAnc_uploadPhoto:inputFileImg" title="Error"
>>>>>>> class="AFErrorIconStyle">X</a></span></td><td valign="top" nowrap
>>>>>>> class="AFContentCell"><input id="uploadPhoto:inputFileImg"
>>>>>>> name="uploadPhoto:inputFileImg" onchange="checkImageExtension(this);"
>>>>>>> class="af_inputFile_content" type="file"></td></tr><tr><td></td><td
>>>>>>> class="AFComponentMessageCell"><span id="uploadPhoto:inputFileImg::msg"
>>>>>>> class="OraInlineErrorText"></span></td></tr></table>
>>>>>>> As one may see in the above generated text, the span that should
>>>>>>> display the message is turning out to have no value in it.  Also, the icon
>>>>>>> "X" does not show up on the screen for some reason.
>>>>>>>  Following is my code snippet that is generating the above mentioned
>>>>>>> view source when trying to upload a file bigger than allowable size;
>>>>>>>  /<tr:panelGroupLayout partialTriggers="uploadImgBtn deleteBtn">
>>>>>>>                                                    <tr:inputFile
>>>>>>> id="inputFileImg" onchange="validateFile(this);"
>>>>>>> partialTriggers="uploadImgBtn deleteBtn" value="#{backingBean.imageFile}"
>>>>>>> rendered="#{backingBean.imageFile==null}"/>
>>>>>>> /                                                    Is this a bug or
>>>>>>> am I missing something?  FYI, I get the same behaviour even with version
>>>>>>> 1.2.9.  Although, in version 1.2.9 there is an exception reported in the
>>>>>>> server log where as in 1.2.10 the exception does not get logged in server
>>>>>>> log.
>>>>>>> -Anuj
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>

Re: tr:inputFile with panelGroupLayout

Posted by Matt Cooper <mc...@apache.org>.
Hi Anuj,

Your test page seems to be okay.  In your first email, there is this style:

display:none

Perhaps either the faces message didn't get assigned to the inputFile
component or maybe the inputFile doesn't know how to render when faces
messages are associated with it?

Regards,
Matt

On Mon, Jul 13, 2009 at 3:51 PM, Anuj Patel <an...@gmail.com> wrote:

> Hi Matt,
> Attached is the page I created to reproduce this problem.  I haven't used
> any other component library nor is there any custom HTML on the page.  Yet,
> the problem is easily reproduced.
> If you find something fishy in the code, then please feel free to point it
> out.
>
> -Anuj
>
>
>
> On Tue, Jul 7, 2009 at 9:57 AM, Matt Cooper <mc...@apache.org> wrote:
>
>> The behavior described sounds like there might be some invalid HTML on the
>> page.  If you have any other component libraries or any custom HTML in this
>> page, I would recommend trying to remove them temporarily to isolate the
>> problem.  If certain pieces of the page are not showing up but their content
>> is present in the raw page source, this is typically caused by mismatching
>> start/end elements.
>>
>> Regards,
>> Matt
>>
>>
>> On Wed, Jul 1, 2009 at 2:46 PM, Anuj Patel <an...@gmail.com>wrote:
>>
>>> It looks like the panelGroupLayout is the culprit here.  Because, even
>>> after I provided an id for the panelGroupLayout, the span remained
>>> unaltered.  i.e.  *<**span** id**=**"uploadPhoto:inputFileImg::msg" **
>>> class**=**"OraInlineErrorText"**></**span**>** * *
>>> *
>>> *Could someone confirm if this is a bug and if so can we create a JIRA
>>> issue for the same?*
>>>
>>> *-Anuj
>>> *
>>>
>>> On Mon, Jun 29, 2009 at 6:21 PM, Anuj Patel <an...@gmail.com>wrote:
>>>
>>>> The span *<**span** id**=**"uploadPhoto:inputFileImg::msg" **class**=**
>>>> "OraInlineErrorText"**></**span**>** *
>>>> already indicates who the message is for.  Besides, if this would have
>>>> been a problem, then my code wouldn't have worked in the scenario where I do
>>>> not have anything in the panelGroupLayout.
>>>>
>>>> One of my other apps, also have similar functionality built with which I
>>>> am able to see the message when I try to upload file greater than allowable
>>>> size
>>>>
>>>> Thanks,
>>>> Anuj
>>>>
>>>> On Mon, Jun 29, 2009 at 5:33 PM, Mamallan Uthaman <
>>>> mamallan.uthaman@oracle.com> wrote:
>>>>
>>>>> Hi Anuj,
>>>>>
>>>>> Could you please try using <tr:messages> to display any error message
>>>>> in the FacesContext? If you refer to Trinidad issue (Trinidad-607) that
>>>>> resolved this problem, the last comment states that the error message is
>>>>> stored in the FacesContext.
>>>>>
>>>>> Thanks
>>>>> Mamallan
>>>>>
>>>>>
>>>>> Anuj Patel wrote:
>>>>>
>>>>>> Hi All,
>>>>>> I am using Trinidad-api and trinidad-impl version 1.2.10.  When using
>>>>>> tr:inputFile with in tr:panelGroupLayout, if the file size is too large then
>>>>>> the message that should be displayed for informing the user is not getting
>>>>>> displayed.  Following is the generated source;
>>>>>>   <br><br><span id="uploadPhoto:j_id141"
>>>>>> class="af_panelGroupLayout"><script type="text/javascript">var
>>>>>> _locale='en';var _tLocale='en';</script><script type="text/javascript"
>>>>>> src="/adf/jsLibs/resources/LocaleElements_en1_2_10.js?loc=en"></script><table
>>>>>> id="uploadPhoto:inputFileImg__xc_" class="af_inputFile" cellpadding="0"
>>>>>> cellspacing="0" border="0" summary=""><tr><td class="af_inputFile_label"
>>>>>> nowrap><span id="uploadPhoto:inputFileImg::icon" style="display:none;"><a
>>>>>> name="_msgAnc_uploadPhoto:inputFileImg" title="Error"
>>>>>> class="AFErrorIconStyle">X</a></span></td><td valign="top" nowrap
>>>>>> class="AFContentCell"><input id="uploadPhoto:inputFileImg"
>>>>>> name="uploadPhoto:inputFileImg" onchange="checkImageExtension(this);"
>>>>>> class="af_inputFile_content" type="file"></td></tr><tr><td></td><td
>>>>>> class="AFComponentMessageCell"><span id="uploadPhoto:inputFileImg::msg"
>>>>>> class="OraInlineErrorText"></span></td></tr></table>
>>>>>> As one may see in the above generated text, the span that should
>>>>>> display the message is turning out to have no value in it.  Also, the icon
>>>>>> "X" does not show up on the screen for some reason.
>>>>>>  Following is my code snippet that is generating the above mentioned
>>>>>> view source when trying to upload a file bigger than allowable size;
>>>>>>  /<tr:panelGroupLayout partialTriggers="uploadImgBtn deleteBtn">
>>>>>>                                                    <tr:inputFile
>>>>>> id="inputFileImg" onchange="validateFile(this);"
>>>>>> partialTriggers="uploadImgBtn deleteBtn" value="#{backingBean.imageFile}"
>>>>>> rendered="#{backingBean.imageFile==null}"/>
>>>>>> /                                                    Is this a bug or
>>>>>> am I missing something?  FYI, I get the same behaviour even with version
>>>>>> 1.2.9.  Although, in version 1.2.9 there is an exception reported in the
>>>>>> server log where as in 1.2.10 the exception does not get logged in server
>>>>>> log.
>>>>>> -Anuj
>>>>>>
>>>>>
>>>>
>>>
>>
>

Re: tr:inputFile with panelGroupLayout

Posted by Anuj Patel <an...@gmail.com>.
Hi Matt,
Attached is the page I created to reproduce this problem.  I haven't used
any other component library nor is there any custom HTML on the page.  Yet,
the problem is easily reproduced.
If you find something fishy in the code, then please feel free to point it
out.

-Anuj


On Tue, Jul 7, 2009 at 9:57 AM, Matt Cooper <mc...@apache.org> wrote:

> The behavior described sounds like there might be some invalid HTML on the
> page.  If you have any other component libraries or any custom HTML in this
> page, I would recommend trying to remove them temporarily to isolate the
> problem.  If certain pieces of the page are not showing up but their content
> is present in the raw page source, this is typically caused by mismatching
> start/end elements.
>
> Regards,
> Matt
>
>
> On Wed, Jul 1, 2009 at 2:46 PM, Anuj Patel <an...@gmail.com>wrote:
>
>> It looks like the panelGroupLayout is the culprit here.  Because, even
>> after I provided an id for the panelGroupLayout, the span remained
>> unaltered.  i.e.  *<**span** id**=**"uploadPhoto:inputFileImg::msg" **
>> class**=**"OraInlineErrorText"**></**span**>** * *
>> *
>> *Could someone confirm if this is a bug and if so can we create a JIRA
>> issue for the same?*
>>
>> *-Anuj
>> *
>>
>> On Mon, Jun 29, 2009 at 6:21 PM, Anuj Patel <an...@gmail.com>wrote:
>>
>>> The span *<**span** id**=**"uploadPhoto:inputFileImg::msg" **class**=**
>>> "OraInlineErrorText"**></**span**>** *
>>> already indicates who the message is for.  Besides, if this would have
>>> been a problem, then my code wouldn't have worked in the scenario where I do
>>> not have anything in the panelGroupLayout.
>>>
>>> One of my other apps, also have similar functionality built with which I
>>> am able to see the message when I try to upload file greater than allowable
>>> size
>>>
>>> Thanks,
>>> Anuj
>>>
>>> On Mon, Jun 29, 2009 at 5:33 PM, Mamallan Uthaman <
>>> mamallan.uthaman@oracle.com> wrote:
>>>
>>>> Hi Anuj,
>>>>
>>>> Could you please try using <tr:messages> to display any error message in
>>>> the FacesContext? If you refer to Trinidad issue (Trinidad-607) that
>>>> resolved this problem, the last comment states that the error message is
>>>> stored in the FacesContext.
>>>>
>>>> Thanks
>>>> Mamallan
>>>>
>>>>
>>>> Anuj Patel wrote:
>>>>
>>>>> Hi All,
>>>>> I am using Trinidad-api and trinidad-impl version 1.2.10.  When using
>>>>> tr:inputFile with in tr:panelGroupLayout, if the file size is too large then
>>>>> the message that should be displayed for informing the user is not getting
>>>>> displayed.  Following is the generated source;
>>>>>   <br><br><span id="uploadPhoto:j_id141"
>>>>> class="af_panelGroupLayout"><script type="text/javascript">var
>>>>> _locale='en';var _tLocale='en';</script><script type="text/javascript"
>>>>> src="/adf/jsLibs/resources/LocaleElements_en1_2_10.js?loc=en"></script><table
>>>>> id="uploadPhoto:inputFileImg__xc_" class="af_inputFile" cellpadding="0"
>>>>> cellspacing="0" border="0" summary=""><tr><td class="af_inputFile_label"
>>>>> nowrap><span id="uploadPhoto:inputFileImg::icon" style="display:none;"><a
>>>>> name="_msgAnc_uploadPhoto:inputFileImg" title="Error"
>>>>> class="AFErrorIconStyle">X</a></span></td><td valign="top" nowrap
>>>>> class="AFContentCell"><input id="uploadPhoto:inputFileImg"
>>>>> name="uploadPhoto:inputFileImg" onchange="checkImageExtension(this);"
>>>>> class="af_inputFile_content" type="file"></td></tr><tr><td></td><td
>>>>> class="AFComponentMessageCell"><span id="uploadPhoto:inputFileImg::msg"
>>>>> class="OraInlineErrorText"></span></td></tr></table>
>>>>> As one may see in the above generated text, the span that should
>>>>> display the message is turning out to have no value in it.  Also, the icon
>>>>> "X" does not show up on the screen for some reason.
>>>>>  Following is my code snippet that is generating the above mentioned
>>>>> view source when trying to upload a file bigger than allowable size;
>>>>>  /<tr:panelGroupLayout partialTriggers="uploadImgBtn deleteBtn">
>>>>>                                                    <tr:inputFile
>>>>> id="inputFileImg" onchange="validateFile(this);"
>>>>> partialTriggers="uploadImgBtn deleteBtn" value="#{backingBean.imageFile}"
>>>>> rendered="#{backingBean.imageFile==null}"/>
>>>>> /                                                    Is this a bug or
>>>>> am I missing something?  FYI, I get the same behaviour even with version
>>>>> 1.2.9.  Although, in version 1.2.9 there is an exception reported in the
>>>>> server log where as in 1.2.10 the exception does not get logged in server
>>>>> log.
>>>>> -Anuj
>>>>>
>>>>
>>>
>>
>

Re: tr:inputFile with panelGroupLayout

Posted by Matt Cooper <mc...@apache.org>.
The behavior described sounds like there might be some invalid HTML on the
page.  If you have any other component libraries or any custom HTML in this
page, I would recommend trying to remove them temporarily to isolate the
problem.  If certain pieces of the page are not showing up but their content
is present in the raw page source, this is typically caused by mismatching
start/end elements.

Regards,
Matt

On Wed, Jul 1, 2009 at 2:46 PM, Anuj Patel <an...@gmail.com> wrote:

> It looks like the panelGroupLayout is the culprit here.  Because, even
> after I provided an id for the panelGroupLayout, the span remained
> unaltered.  i.e.  *<**span** id**=**"uploadPhoto:inputFileImg::msg" **
> class**=**"OraInlineErrorText"**></**span**>** * *
> *
> *Could someone confirm if this is a bug and if so can we create a JIRA
> issue for the same?*
>
> *-Anuj
> *
>
> On Mon, Jun 29, 2009 at 6:21 PM, Anuj Patel <an...@gmail.com>wrote:
>
>> The span *<**span** id**=**"uploadPhoto:inputFileImg::msg" **class**=**
>> "OraInlineErrorText"**></**span**>** *
>> already indicates who the message is for.  Besides, if this would have
>> been a problem, then my code wouldn't have worked in the scenario where I do
>> not have anything in the panelGroupLayout.
>>
>> One of my other apps, also have similar functionality built with which I
>> am able to see the message when I try to upload file greater than allowable
>> size
>>
>> Thanks,
>> Anuj
>>
>> On Mon, Jun 29, 2009 at 5:33 PM, Mamallan Uthaman <
>> mamallan.uthaman@oracle.com> wrote:
>>
>>> Hi Anuj,
>>>
>>> Could you please try using <tr:messages> to display any error message in
>>> the FacesContext? If you refer to Trinidad issue (Trinidad-607) that
>>> resolved this problem, the last comment states that the error message is
>>> stored in the FacesContext.
>>>
>>> Thanks
>>> Mamallan
>>>
>>>
>>> Anuj Patel wrote:
>>>
>>>> Hi All,
>>>> I am using Trinidad-api and trinidad-impl version 1.2.10.  When using
>>>> tr:inputFile with in tr:panelGroupLayout, if the file size is too large then
>>>> the message that should be displayed for informing the user is not getting
>>>> displayed.  Following is the generated source;
>>>>   <br><br><span id="uploadPhoto:j_id141"
>>>> class="af_panelGroupLayout"><script type="text/javascript">var
>>>> _locale='en';var _tLocale='en';</script><script type="text/javascript"
>>>> src="/adf/jsLibs/resources/LocaleElements_en1_2_10.js?loc=en"></script><table
>>>> id="uploadPhoto:inputFileImg__xc_" class="af_inputFile" cellpadding="0"
>>>> cellspacing="0" border="0" summary=""><tr><td class="af_inputFile_label"
>>>> nowrap><span id="uploadPhoto:inputFileImg::icon" style="display:none;"><a
>>>> name="_msgAnc_uploadPhoto:inputFileImg" title="Error"
>>>> class="AFErrorIconStyle">X</a></span></td><td valign="top" nowrap
>>>> class="AFContentCell"><input id="uploadPhoto:inputFileImg"
>>>> name="uploadPhoto:inputFileImg" onchange="checkImageExtension(this);"
>>>> class="af_inputFile_content" type="file"></td></tr><tr><td></td><td
>>>> class="AFComponentMessageCell"><span id="uploadPhoto:inputFileImg::msg"
>>>> class="OraInlineErrorText"></span></td></tr></table>
>>>> As one may see in the above generated text, the span that should display
>>>> the message is turning out to have no value in it.  Also, the icon "X" does
>>>> not show up on the screen for some reason.
>>>>  Following is my code snippet that is generating the above mentioned
>>>> view source when trying to upload a file bigger than allowable size;
>>>>  /<tr:panelGroupLayout partialTriggers="uploadImgBtn deleteBtn">
>>>>                                                    <tr:inputFile
>>>> id="inputFileImg" onchange="validateFile(this);"
>>>> partialTriggers="uploadImgBtn deleteBtn" value="#{backingBean.imageFile}"
>>>> rendered="#{backingBean.imageFile==null}"/>
>>>> /                                                    Is this a bug or am
>>>> I missing something?  FYI, I get the same behaviour even with version 1.2.9.
>>>>  Although, in version 1.2.9 there is an exception reported in the server log
>>>> where as in 1.2.10 the exception does not get logged in server log.
>>>> -Anuj
>>>>
>>>
>>
>

Re: tr:inputFile with panelGroupLayout

Posted by Anuj Patel <an...@gmail.com>.
It looks like the panelGroupLayout is the culprit here.  Because, even after
I provided an id for the panelGroupLayout, the span remained unaltered.
 i.e.  *<**span** id**=**"uploadPhoto:inputFileImg::msg" **class**=**
"OraInlineErrorText"**></**span**>** **
*
*Could someone confirm if this is a bug and if so can we create a JIRA issue
for the same?*

*-Anuj
*
On Mon, Jun 29, 2009 at 6:21 PM, Anuj Patel <an...@gmail.com> wrote:

> The span *<**span** id**=**"uploadPhoto:inputFileImg::msg" **class**=**
> "OraInlineErrorText"**></**span**>** *
> already indicates who the message is for.  Besides, if this would have been
> a problem, then my code wouldn't have worked in the scenario where I do not
> have anything in the panelGroupLayout.
>
> One of my other apps, also have similar functionality built with which I am
> able to see the message when I try to upload file greater than allowable
> size
>
> Thanks,
> Anuj
>
> On Mon, Jun 29, 2009 at 5:33 PM, Mamallan Uthaman <
> mamallan.uthaman@oracle.com> wrote:
>
>> Hi Anuj,
>>
>> Could you please try using <tr:messages> to display any error message in
>> the FacesContext? If you refer to Trinidad issue (Trinidad-607) that
>> resolved this problem, the last comment states that the error message is
>> stored in the FacesContext.
>>
>> Thanks
>> Mamallan
>>
>>
>> Anuj Patel wrote:
>>
>>> Hi All,
>>> I am using Trinidad-api and trinidad-impl version 1.2.10.  When using
>>> tr:inputFile with in tr:panelGroupLayout, if the file size is too large then
>>> the message that should be displayed for informing the user is not getting
>>> displayed.  Following is the generated source;
>>>   <br><br><span id="uploadPhoto:j_id141"
>>> class="af_panelGroupLayout"><script type="text/javascript">var
>>> _locale='en';var _tLocale='en';</script><script type="text/javascript"
>>> src="/adf/jsLibs/resources/LocaleElements_en1_2_10.js?loc=en"></script><table
>>> id="uploadPhoto:inputFileImg__xc_" class="af_inputFile" cellpadding="0"
>>> cellspacing="0" border="0" summary=""><tr><td class="af_inputFile_label"
>>> nowrap><span id="uploadPhoto:inputFileImg::icon" style="display:none;"><a
>>> name="_msgAnc_uploadPhoto:inputFileImg" title="Error"
>>> class="AFErrorIconStyle">X</a></span></td><td valign="top" nowrap
>>> class="AFContentCell"><input id="uploadPhoto:inputFileImg"
>>> name="uploadPhoto:inputFileImg" onchange="checkImageExtension(this);"
>>> class="af_inputFile_content" type="file"></td></tr><tr><td></td><td
>>> class="AFComponentMessageCell"><span id="uploadPhoto:inputFileImg::msg"
>>> class="OraInlineErrorText"></span></td></tr></table>
>>> As one may see in the above generated text, the span that should display
>>> the message is turning out to have no value in it.  Also, the icon "X" does
>>> not show up on the screen for some reason.
>>>  Following is my code snippet that is generating the above mentioned view
>>> source when trying to upload a file bigger than allowable size;
>>>  /<tr:panelGroupLayout partialTriggers="uploadImgBtn deleteBtn">
>>>                                                    <tr:inputFile
>>> id="inputFileImg" onchange="validateFile(this);"
>>> partialTriggers="uploadImgBtn deleteBtn" value="#{backingBean.imageFile}"
>>> rendered="#{backingBean.imageFile==null}"/>
>>> /                                                    Is this a bug or am
>>> I missing something?  FYI, I get the same behaviour even with version 1.2.9.
>>>  Although, in version 1.2.9 there is an exception reported in the server log
>>> where as in 1.2.10 the exception does not get logged in server log.
>>> -Anuj
>>>
>>
>

Re: tr:inputFile with panelGroupLayout

Posted by Anuj Patel <an...@gmail.com>.
The span *<**span** id**=**"uploadPhoto:inputFileImg::msg" **class**=**
"OraInlineErrorText"**></**span**>** *
already indicates who the message is for.  Besides, if this would have been
a problem, then my code wouldn't have worked in the scenario where I do not
have anything in the panelGroupLayout.

One of my other apps, also have similar functionality built with which I am
able to see the message when I try to upload file greater than allowable
size

Thanks,
Anuj

On Mon, Jun 29, 2009 at 5:33 PM, Mamallan Uthaman <
mamallan.uthaman@oracle.com> wrote:

> Hi Anuj,
>
> Could you please try using <tr:messages> to display any error message in
> the FacesContext? If you refer to Trinidad issue (Trinidad-607) that
> resolved this problem, the last comment states that the error message is
> stored in the FacesContext.
>
> Thanks
> Mamallan
>
>
> Anuj Patel wrote:
>
>> Hi All,
>> I am using Trinidad-api and trinidad-impl version 1.2.10.  When using
>> tr:inputFile with in tr:panelGroupLayout, if the file size is too large then
>> the message that should be displayed for informing the user is not getting
>> displayed.  Following is the generated source;
>>   <br><br><span id="uploadPhoto:j_id141"
>> class="af_panelGroupLayout"><script type="text/javascript">var
>> _locale='en';var _tLocale='en';</script><script type="text/javascript"
>> src="/adf/jsLibs/resources/LocaleElements_en1_2_10.js?loc=en"></script><table
>> id="uploadPhoto:inputFileImg__xc_" class="af_inputFile" cellpadding="0"
>> cellspacing="0" border="0" summary=""><tr><td class="af_inputFile_label"
>> nowrap><span id="uploadPhoto:inputFileImg::icon" style="display:none;"><a
>> name="_msgAnc_uploadPhoto:inputFileImg" title="Error"
>> class="AFErrorIconStyle">X</a></span></td><td valign="top" nowrap
>> class="AFContentCell"><input id="uploadPhoto:inputFileImg"
>> name="uploadPhoto:inputFileImg" onchange="checkImageExtension(this);"
>> class="af_inputFile_content" type="file"></td></tr><tr><td></td><td
>> class="AFComponentMessageCell"><span id="uploadPhoto:inputFileImg::msg"
>> class="OraInlineErrorText"></span></td></tr></table>
>> As one may see in the above generated text, the span that should display
>> the message is turning out to have no value in it.  Also, the icon "X" does
>> not show up on the screen for some reason.
>>  Following is my code snippet that is generating the above mentioned view
>> source when trying to upload a file bigger than allowable size;
>>  /<tr:panelGroupLayout partialTriggers="uploadImgBtn deleteBtn">
>>                                                    <tr:inputFile
>> id="inputFileImg" onchange="validateFile(this);"
>> partialTriggers="uploadImgBtn deleteBtn" value="#{backingBean.imageFile}"
>> rendered="#{backingBean.imageFile==null}"/>
>> /                                                    Is this a bug or am I
>> missing something?  FYI, I get the same behaviour even with version 1.2.9.
>>  Although, in version 1.2.9 there is an exception reported in the server log
>> where as in 1.2.10 the exception does not get logged in server log.
>> -Anuj
>>
>

Re: tr:inputFile with panelGroupLayout

Posted by Mamallan Uthaman <ma...@oracle.com>.
Hi Anuj,

Could you please try using <tr:messages> to display any error message in 
the FacesContext? If you refer to Trinidad issue (Trinidad-607) that 
resolved this problem, the last comment states that the error message is 
stored in the FacesContext.

Thanks
Mamallan

Anuj Patel wrote:
> Hi All,
> I am using Trinidad-api and trinidad-impl version 1.2.10.  When using 
> tr:inputFile with in tr:panelGroupLayout, if the file size is too 
> large then the message that should be displayed for informing the user 
> is not getting displayed.  Following is the generated source;
>  
>  <br><br><span id="uploadPhoto:j_id141" 
> class="af_panelGroupLayout"><script type="text/javascript">var 
> _locale='en';var _tLocale='en';</script><script type="text/javascript" 
> src="/adf/jsLibs/resources/LocaleElements_en1_2_10.js?loc=en"></script><table 
> id="uploadPhoto:inputFileImg__xc_" class="af_inputFile" 
> cellpadding="0" cellspacing="0" border="0" summary=""><tr><td 
> class="af_inputFile_label" nowrap><span 
> id="uploadPhoto:inputFileImg::icon" style="display:none;"><a 
> name="_msgAnc_uploadPhoto:inputFileImg" title="Error" 
> class="AFErrorIconStyle">X</a></span></td><td valign="top" nowrap 
> class="AFContentCell"><input id="uploadPhoto:inputFileImg" 
> name="uploadPhoto:inputFileImg" onchange="checkImageExtension(this);" 
> class="af_inputFile_content" type="file"></td></tr><tr><td></td><td 
> class="AFComponentMessageCell"><span 
> id="uploadPhoto:inputFileImg::msg" 
> class="OraInlineErrorText"></span></td></tr></table>
> As one may see in the above generated text, the span that should 
> display the message is turning out to have no value in it.  Also, the 
> icon "X" does not show up on the screen for some reason.
>  
> Following is my code snippet that is generating the above mentioned 
> view source when trying to upload a file bigger than allowable size;
>  
> /<tr:panelGroupLayout partialTriggers="uploadImgBtn deleteBtn">
>                                                     <tr:inputFile 
> id="inputFileImg" onchange="validateFile(this);" 
> partialTriggers="uploadImgBtn deleteBtn" 
> value="#{backingBean.imageFile}" 
> rendered="#{backingBean.imageFile==null}"/>
> /                                                   
>  
> Is this a bug or am I missing something?  FYI, I get the same 
> behaviour even with version 1.2.9.  Although, in version 1.2.9 there 
> is an exception reported in the server log where as in 1.2.10 the 
> exception does not get logged in server log.
> -Anuj