Author: prabhat.jha(a)jboss.com
Date: 2008-09-25 16:46:09 -0400 (Thu, 25 Sep 2008)
New Revision: 11989
Modified:
branches/JBoss_Portal_Branch_2_7/widget/src/resources/portal-widget-war/WEB-INF/jsp/edit_content.jsp
Log:
[JBPORTAL-2104] adding id to widget selection components
Modified:
branches/JBoss_Portal_Branch_2_7/widget/src/resources/portal-widget-war/WEB-INF/jsp/edit_content.jsp
===================================================================
---
branches/JBoss_Portal_Branch_2_7/widget/src/resources/portal-widget-war/WEB-INF/jsp/edit_content.jsp 2008-09-25
20:18:09 UTC (rev 11988)
+++
branches/JBoss_Portal_Branch_2_7/widget/src/resources/portal-widget-war/WEB-INF/jsp/edit_content.jsp 2008-09-25
20:46:09 UTC (rev 11989)
@@ -84,10 +84,10 @@
}
%>
<div id="<p:namespace/>selection">
- <input type="RADIO" name="gg_pick_method"
value="directory" <%= !uriPickMethod ? "CHECKED" : ""
%>
+ <input id="radio1" type="RADIO" name="gg_pick_method"
value="directory" <%= !uriPickMethod ? "CHECKED" : ""
%>
onclick="document.getElementById('<p:namespace/>directory_search_div').style.display
= 'block';
document.getElementById('<p:namespace/>gadget_url_div').style.display =
'none'; ">
Gadget Directory
- <input type="RADIO" name="gg_pick_method" value="uri"
<%= uriPickMethod ? "CHECKED" : "" %>
+ <input id="raido2" type="RADIO" name="gg_pick_method"
value="uri" <%= uriPickMethod ? "CHECKED" : "" %>
onclick="document.getElementById('<p:namespace/>directory_search_div').style.display
= 'none';
document.getElementById('<p:namespace/>gadget_url_div').style.display =
'block'; ">
Gadget URI
<br>
@@ -100,7 +100,7 @@
contentURL.setParameter("content.action.select",
"content.action.select");
contentURL.setParameter("gg_pick_method", "uri");
%>
- <form action="<%= contentURL %>" method="post">
+ <form id="widget-form" action="<%= contentURL %>"
method="post">
<%
if (uri != null && selWidget instanceof WidgetFailure)
@@ -124,16 +124,16 @@
}
%>
- <input type="text" name="content.uri" value="<%= uri
!= null ? uri : "" %>" class="portlet-form-field"/>
- <input type="submit" value="Select Gadget"
class="portlet-form-button"/>
+ <input id="text-input" type="text"
name="content.uri" value="<%= uri != null ? uri : ""
%>" class="portlet-form-field"/>
+ <input id="submit" type="submit" value="Select
Gadget" class="portlet-form-button"/>
</form>
</div>
<div id="<p:namespace/>directory_search_div" style="display:
<%= !uriPickMethod ? "block" : "none" %>;">
- <form action="<p:renderURL></p:renderURL>"
method="post">
- <input type="text" name="query" value="<%= queryTerm
%>" class="portlet-form-field"/>
- <select name="cat" class="portlet-form-field">
+ <form id="widget-form1"
action="<p:renderURL></p:renderURL>" method="post">
+ <input id="query-input" type="text" name="query"
value="<%= queryTerm %>"
class="portlet-form-field"/>
+ <select id="select-combo" name="cat"
class="portlet-form-field">
<%
// Category dropdown
for (Iterator i = provider.getCategories().iterator();
i.hasNext();)
@@ -147,7 +147,7 @@
}
%>
</select>
- <select name="numberOfResults"
class="portlet-form-field">
+ <select id="num-res-combo" name="numberOfResults"
class="portlet-form-field">
<%
// Number of results dropdown
for(int i = 5; i <= 25; i = i + 5)
@@ -158,7 +158,7 @@
%>
</select>
<br/>
- <input type="submit" value="Search Gadgets"
class="portlet-form-button"/>
+ <input id="submit-button" type="submit" value="Search
Gadgets" class="portlet-form-button"/>
<%
if (uri != null && selWidget instanceof WidgetFailure)
{
Show replies by date