{"id":557,"date":"2012-03-11T21:11:45","date_gmt":"2012-03-11T19:11:45","guid":{"rendered":"http:\/\/hasselba.ch\/blog\/?p=557"},"modified":"2012-03-11T21:11:45","modified_gmt":"2012-03-11T19:11:45","slug":"quick-n-dirty-id-der-uiviewroot-andern","status":"publish","type":"post","link":"https:\/\/hasselba.ch\/blog\/?p=557","title":{"rendered":"Quick-n-Dirty: Id der UIViewRoot \u00e4ndern"},"content":{"rendered":"<p>Setzt man dem UIViewRoot-Element eine Id&#8230;<\/p>\n<pre>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;xp:view xmlns:xp=\"http:\/\/www.ibm.com\/xsp\/core\" <strong><span style=\"color: #ff0000;\">id=\"abc\"<\/span><\/strong>&gt;\r\n   &lt;xp:inputText id=\"inputText1\"&gt;&lt;\/xp:inputText&gt;\r\n&lt;\/xp:view&gt;<\/pre>\n<p>&#8230; \u00e4ndert sich der generierte HTML-Code entsprechend ab:<\/p>\n<pre>...\r\n&lt;form id=\"<strong><span style=\"color: #ff0000;\">abc<\/span><\/strong>:_id1\" method=\"post\" \r\n action=\"\/TESTXPages.nsf\/viewId.xsp\"\r\n\u00a0class=\"xspForm\" enctype=\"multipart\/form-data\"&gt;\r\n&lt;input type=\"text\" id=\"<strong><span style=\"color: #ff0000;\">abc<\/span><\/strong>:_id1:inputText1\"\r\n  name=\"<strong><span style=\"color: #ff0000;\">abc<\/span><\/strong>:_id1:inputText1\" class=\"xspInputFieldEditBox\"&gt;\r\n&lt;input type=\"hidden\" name=\"$$viewid\" id=\"<strong><span style=\"color: #ff0000;\">abc<\/span><\/strong>:_id1__VUID\"\r\n\u00a0value=\"!d38auuyoeb!\"&gt;\r\n&lt;input type=\"hidden\" name=\"$$xspsubmitid\"&gt;\r\n&lt;input type=\"hidden\" name=\"$$xspexecid\"&gt;\r\n&lt;input type=\"hidden\" name=\"$$xspsubmitvalue\"&gt;\r\n&lt;input type=\"hidden\" name=\"$$xspsubmitscroll\"&gt;\r\n&lt;input type=\"hidden\" name=\"<strong><span style=\"color: #ff0000;\">abc<\/span><\/strong>:_id1\" value=\"<strong><span style=\"color: #ff0000;\">abc<\/span><\/strong>:_id1\"&gt;\r\n&lt;\/form&gt;\r\n...<\/pre>\n<p>Auch kann man auf die UIViewRoot nun mittels der Id zugreifen, ein\u00a0<em>getComponent(&#8222;abc&#8220;)<\/em>\u00a0liefert die Komponente zur\u00fcck.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setzt man dem UIViewRoot-Element eine Id&#8230; &lt;?xml version=&#8220;1.0&#8243; encoding=&#8220;UTF-8&#8243;?&gt; &lt;xp:view xmlns:xp=&#8220;http:\/\/www.ibm.com\/xsp\/core&#8220; id=&#8220;abc&#8220;&gt; &lt;xp:inputText id=&#8220;inputText1&#8243;&gt;&lt;\/xp:inputText&gt; &lt;\/xp:view&gt; &#8230; \u00e4ndert sich der generierte HTML-Code entsprechend ab: &#8230; &lt;form id=&#8220;abc:_id1&#8243; method=&#8220;post&#8220; action=&#8220;\/TESTXPages.nsf\/viewId.xsp&#8220; \u00a0class=&#8220;xspForm&#8220; enctype=&#8220;multipart\/form-data&#8220;&gt; &lt;input type=&#8220;text&#8220; id=&#8220;abc:_id1:inputText1&#8243; name=&#8220;abc:_id1:inputText1&#8243; class=&#8220;xspInputFieldEditBox&#8220;&gt; &lt;input type=&#8220;hidden&#8220; name=&#8220;$$viewid&#8220; id=&#8220;abc:_id1__VUID&#8220; \u00a0value=&#8220;!d38auuyoeb!&#8220;&gt; &hellip; <a href=\"https:\/\/hasselba.ch\/blog\/?p=557\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,26,74],"tags":[7,86,32,3],"class_list":["post-557","post","type-post","status-publish","format-standard","hentry","category-allgemein","category-jsf","category-xpages","tag-domino","tag-jsf","tag-tipp","tag-xpages"],"_links":{"self":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/557","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=557"}],"version-history":[{"count":3,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/557\/revisions"}],"predecessor-version":[{"id":585,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/557\/revisions\/585"}],"wp:attachment":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}