You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Udo Schnurpfeil (JIRA)" <de...@myfaces.apache.org> on 2013/08/30 17:03:52 UTC

[jira] [Commented] (TOBAGO-1307) tx:date not recognized as partial request

    [ https://issues.apache.org/jira/browse/TOBAGO-1307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13754765#comment-13754765 ] 

Udo Schnurpfeil commented on TOBAGO-1307:
-----------------------------------------

Which application server?
Which JSF implementation and verson?
                
> tx:date not recognized as partial request
> -----------------------------------------
>
>                 Key: TOBAGO-1307
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-1307
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Michael Bädorf
>
> Using tx:date with JSF 2.x returns a wrong answer:
> <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n{
>   "tobagoAjaxResponse": true,
>   "responseCode": 200,
>   "ajaxPart_0": {
>     "ajaxId": "j_idt1:j_idt13:j_id42:j_id43popup",
>     "html": "<div id=\"j_idt1:j_idt13:j_id42:j_id43popup\" style=\"width:181px;height:238px;top:527px;left:1878px;position:absolute;z-index:100;\" class=\"tobago-popup tobago-popup-markup-modal\"><div class=\"tobago-box\" id=\"j_idt1:j_idt13:j_id42:j_id43popup:box\" style=\"width:181px;height:238px;top:0px;left:0px;display:block;position:absolute;\"><div class=\"tobago-box-shadow\" style=\"width:180px;height:237px;\"><div class=\"tobago-box-border\" style=\"width:178px;height:235px;\"><div class=\"tobago-box-header\">Datumsauswahl</div></div></div><div class=\"tobago-box-content\" style=\"widt
> h:178px;height:215px;top:21px;left:1px;display:block;position:absolute;\"><div id=\"j_idt1:j_idt13:j_id42:j_id43popup:calendar\" class=\"tobago-calendar\" style=\"width:168px;height:180px;top:5px;left:5px;display:block;position:absolute;\" data-tobago-date-input-id=\"j_idt1:j_idt13:j_id41\" data-tobago-day=\"2013\" data-tobago-month=\"8\" data-tobago-year=\"26\" data-tobago-first-day-of-week=\"2\" data-tobago-month-names=\"Januar,Februar,März,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember\"><div class=\"tobago-calendar-row\"><img class=\"tobago-calendar-header\" alt=\"\" src=\"/usermanagement/org/apache/myface
> s/tobago/renderkit/2.0.0-alpha-2-SNAPSHOT/html/speyside/standard/image/calendarFastPrev.gif\" data-tobago-command=\"fastPrev\"><img class=\"tobago-calendar-header\" alt=\"\" src=\"/usermanagement/org/apache/myfaces/tobago/renderkit/2.0.0-alpha-2-SNAPSHOT/html/speyside/standard/image/calendarPrev.gif\" data-tobago-command=\"prev\"><span class=\"tobago-calendar-header\"><span data-tobago-command=\"month\">August</span>&nbsp;<span data-tobago-command=\"year\">2013</span></span><img class=\"tobago-calendar-header\" alt=\"\" src=\"/usermanagement/org/apache/myfaces/tobago/renderkit/2.0.0-alpha-2-S
> NAPSHOT/html/speyside/standard/image/calendarNext.gif\" data-tobago-command=\"next\"><img class=\"tobago-calendar-header\" alt=\"\" src=\"/usermanagement/org/apache/myfaces/tobago/renderkit/2.0.0-alpha-2-SNAPSHOT/html/speyside/standard/image/calendarFastNext.gif\" data-tobago-command=\"fastNext\"></div><div class=\"tobago-calendar-row\"><span class=\"tobago-calendar-dayOfWeek\">Mo</span><span class=\"tobago-calendar-dayOfWeek\">Di</span><span class=\"tobago-calendar-dayOfWeek\">Mi</span><span class=\"tobago-calendar-dayOfWeek\">Do</span><span class=\"tobago-calendar-dayOfW
> eek\">Fr</span><span class=\"tobago-calendar-dayOfWeek\">Sa</span><span class=\"tobago-calendar-dayOfWeek\">So</span></div><div class=\"tobago-calendar-grid\"><div class=\"tobago-calendar-row\"><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">29</span><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">30</span><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">31</span><span class=\"tobago-calendar-day\">1</span><span class=\"tobago-calendar-day\">2</span><span class=\"tobago-calendar-day\">3</span><span class=\"
> tobago-calendar-day\">4</span></div><div class=\"tobago-calendar-row\"><span class=\"tobago-calendar-day\">5</span><span class=\"tobago-calendar-day\">6</span><span class=\"tobago-calendar-day\">7</span><span class=\"tobago-calendar-day\">8</span><span class=\"tobago-calendar-day\">9</span><span class=\"tobago-calendar-day\">10</span><span class=\"tobago-calendar-day\">11</span></div><div class=\"tobago-calendar-row\"><span class=\"tobago-calendar-day\">12</span><span class=\"tobago-calendar-day\">13</span><span class=\"tobago-calendar-day\">14</span>
> ;<span class=\"tobago-calendar-day\">15</span><span class=\"tobago-calendar-day\">16</span><span class=\"tobago-calendar-day\">17</span><span class=\"tobago-calendar-day\">18</span></div><div class=\"tobago-calendar-row\"><span class=\"tobago-calendar-day\">19</span><span class=\"tobago-calendar-day\">20</span><span class=\"tobago-calendar-day\">21</span><span class=\"tobago-calendar-day\">22</span><span class=\"tobago-calendar-day\">23</span><span class=\"tobago-calendar-day\">24</span><span class=\"tobago-calendar-day\">25</span></div><div class=\"
> tobago-calendar-row\"><span class=\"tobago-calendar-day\">26</span><span class=\"tobago-calendar-day\">27</span><span class=\"tobago-calendar-day\">28</span><span class=\"tobago-calendar-day\">29</span><span class=\"tobago-calendar-day\">30</span><span class=\"tobago-calendar-day\">31</span><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">1</span></div><div class=\"tobago-calendar-row\"><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">2</span><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">3</span><span clas
> s=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">4</span><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">5</span><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">6</span><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">7</span><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">8</span></div></div></div><div id=\"j_idt1:j_idt13:j_id42:j_id43popup:buttonPanel\" class=\"tobago-panel\" style=\"width:168px;height:20px;top:190px;left:5px;display:block;position:absolute;\
> "><button type=\"button\" name=\"j_idt1:j_idt13:j_id42:j_id43popup:ok\" id=\"j_idt1:j_idt13:j_id42:j_id43popup:ok\" data-tobago-date-picker-ok=\"true\" data-tobago-commands=\"{&quot;click&quot;:{&quot;popup&quot;:{&quot;command&quot;:&quot;close&quot;,&quot;immediate&quot;:false},&quot;omit&quot;:true}}\" href=\"#\" style=\"width:75px;height:14px;top:0px;left:0px;display:block;position:absolute;\" class=\"tobago-button\"><span>OK</span></button><button type=\"button\" name=\"j_idt1:j_idt13:j_id42:j_id43popup:cancel\" id=\"j_idt1:j_idt13:j_id42:j_id43popup:cancel\" data-tobago-commands=\"{&quot;click&quot;:{&quot;popup&quot;:{&quot;command&quot;:&quot;close&quot;,&quot;immediate&quot;:true}}}\" href=\"#\" style=\"width:76px;height:14px;top:0px;left:86px;display:block;position:absolute;\" class=\"tobago-button\"><span>Abbrechen</span></button></div></div></div></div>",
>     "responseCode": 200
>   },
>   "jsfState": "<input type=\"hidden\" name=\"javax.faces.ViewState\" id=\"j_id1:javax.faces.ViewState:0\" value=\"-1186034638223701276:-8097948037232765006\" autocomplete=\"off\">"
> }
> As seen in example app it should return something like
> {
>   "tobagoAjaxResponse": true,
>   "responseCode": 200,
>   "ajaxPart_0": {
>     "ajaxId": "j_idt1:j_idt13:j_id42:j_id43popup",
>     "html": "<div id=\"j_idt1:j_idt13:j_id42:j_id43popup\" style=\"width:181px;height:238px;top:527px;left:1878px;position:absolute;z-index:100;\" class=\"tobago-popup tobago-popup-markup-modal\"><div class=\"tobago-box\" id=\"j_idt1:j_idt13:j_id42:j_id43popup:box\" style=\"width:181px;height:238px;top:0px;left:0px;display:block;position:absolute;\"><div class=\"tobago-box-shadow\" style=\"width:180px;height:237px;\"><div class=\"tobago-box-border\" style=\"width:178px;height:235px;\"><div class=\"tobago-box-header\">Datumsauswahl</div></div></div><div class=\"tobago-box-content\" style=\"widt
> h:178px;height:215px;top:21px;left:1px;display:block;position:absolute;\"><div id=\"j_idt1:j_idt13:j_id42:j_id43popup:calendar\" class=\"tobago-calendar\" style=\"width:168px;height:180px;top:5px;left:5px;display:block;position:absolute;\" data-tobago-date-input-id=\"j_idt1:j_idt13:j_id41\" data-tobago-day=\"2013\" data-tobago-month=\"8\" data-tobago-year=\"26\" data-tobago-first-day-of-week=\"2\" data-tobago-month-names=\"Januar,Februar,März,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember\"><div class=\"tobago-calendar-row\"><img class=\"tobago-calendar-header\" alt=\"\" src=\"/usermanagement/org/apache/myface
> s/tobago/renderkit/2.0.0-alpha-2-SNAPSHOT/html/speyside/standard/image/calendarFastPrev.gif\" data-tobago-command=\"fastPrev\"><img class=\"tobago-calendar-header\" alt=\"\" src=\"/usermanagement/org/apache/myfaces/tobago/renderkit/2.0.0-alpha-2-SNAPSHOT/html/speyside/standard/image/calendarPrev.gif\" data-tobago-command=\"prev\"><span class=\"tobago-calendar-header\"><span data-tobago-command=\"month\">August</span>&nbsp;<span data-tobago-command=\"year\">2013</span></span><img class=\"tobago-calendar-header\" alt=\"\" src=\"/usermanagement/org/apache/myfaces/tobago/renderkit/2.0.0-alpha-2-S
> NAPSHOT/html/speyside/standard/image/calendarNext.gif\" data-tobago-command=\"next\"><img class=\"tobago-calendar-header\" alt=\"\" src=\"/usermanagement/org/apache/myfaces/tobago/renderkit/2.0.0-alpha-2-SNAPSHOT/html/speyside/standard/image/calendarFastNext.gif\" data-tobago-command=\"fastNext\"></div><div class=\"tobago-calendar-row\"><span class=\"tobago-calendar-dayOfWeek\">Mo</span><span class=\"tobago-calendar-dayOfWeek\">Di</span><span class=\"tobago-calendar-dayOfWeek\">Mi</span><span class=\"tobago-calendar-dayOfWeek\">Do</span><span class=\"tobago-calendar-dayOfW
> eek\">Fr</span><span class=\"tobago-calendar-dayOfWeek\">Sa</span><span class=\"tobago-calendar-dayOfWeek\">So</span></div><div class=\"tobago-calendar-grid\"><div class=\"tobago-calendar-row\"><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">29</span><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">30</span><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">31</span><span class=\"tobago-calendar-day\">1</span><span class=\"tobago-calendar-day\">2</span><span class=\"tobago-calendar-day\">3</span><span class=\"
> tobago-calendar-day\">4</span></div><div class=\"tobago-calendar-row\"><span class=\"tobago-calendar-day\">5</span><span class=\"tobago-calendar-day\">6</span><span class=\"tobago-calendar-day\">7</span><span class=\"tobago-calendar-day\">8</span><span class=\"tobago-calendar-day\">9</span><span class=\"tobago-calendar-day\">10</span><span class=\"tobago-calendar-day\">11</span></div><div class=\"tobago-calendar-row\"><span class=\"tobago-calendar-day\">12</span><span class=\"tobago-calendar-day\">13</span><span class=\"tobago-calendar-day\">14</span>
> ;<span class=\"tobago-calendar-day\">15</span><span class=\"tobago-calendar-day\">16</span><span class=\"tobago-calendar-day\">17</span><span class=\"tobago-calendar-day\">18</span></div><div class=\"tobago-calendar-row\"><span class=\"tobago-calendar-day\">19</span><span class=\"tobago-calendar-day\">20</span><span class=\"tobago-calendar-day\">21</span><span class=\"tobago-calendar-day\">22</span><span class=\"tobago-calendar-day\">23</span><span class=\"tobago-calendar-day\">24</span><span class=\"tobago-calendar-day\">25</span></div><div class=\"
> tobago-calendar-row\"><span class=\"tobago-calendar-day\">26</span><span class=\"tobago-calendar-day\">27</span><span class=\"tobago-calendar-day\">28</span><span class=\"tobago-calendar-day\">29</span><span class=\"tobago-calendar-day\">30</span><span class=\"tobago-calendar-day\">31</span><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">1</span></div><div class=\"tobago-calendar-row\"><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">2</span><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">3</span><span clas
> s=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">4</span><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">5</span><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">6</span><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">7</span><span class=\"tobago-calendar-day tobago-calendar-day-markup-disabled\">8</span></div></div></div><div id=\"j_idt1:j_idt13:j_id42:j_id43popup:buttonPanel\" class=\"tobago-panel\" style=\"width:168px;height:20px;top:190px;left:5px;display:block;position:absolute;\
> "><button type=\"button\" name=\"j_idt1:j_idt13:j_id42:j_id43popup:ok\" id=\"j_idt1:j_idt13:j_id42:j_id43popup:ok\" data-tobago-date-picker-ok=\"true\" data-tobago-commands=\"{&quot;click&quot;:{&quot;popup&quot;:{&quot;command&quot;:&quot;close&quot;,&quot;immediate&quot;:false},&quot;omit&quot;:true}}\" href=\"#\" style=\"width:75px;height:14px;top:0px;left:0px;display:block;position:absolute;\" class=\"tobago-button\"><span>OK</span></button><button type=\"button\" name=\"j_idt1:j_idt13:j_id42:j_id43popup:cancel\" id=\"j_idt1:j_idt13:j_id42:j_id43popup:cancel\" data-tobago-commands=\"{&quot;click&quot;:{&quot;popup&quot;:{&quot;command&quot;:&quot;close&quot;,&quot;immediate&quot;:true}}}\" href=\"#\" style=\"width:76px;height:14px;top:0px;left:86px;display:block;position:absolute;\" class=\"tobago-button\"><span>Abbrechen</span></button></div></div></div></div>",
>     "responseCode": 200
>   },
>   "jsfState": "<input type=\"hidden\" name=\"javax.faces.ViewState\" id=\"j_id1:javax.faces.ViewState:0\" value=\"-1186034638223701276:-8097948037232765006\" autocomplete=\"off\">"
> }
> The error seems to be
> <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n
> so the answer could not recognized as json answer

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira