我使用 jsf 显示这样的 googlemap
<f:view contentType="text/html">
<p:gmap id="gmap" center="41.381542, 2.122893" zoom="15" type="ROADMAP"
style="width:600px;height:400px"
model="#{restaurant.emptyModel}"
onPointClick="handlePointClick(event);"
widgetVar="map" /></f:view>
<h:inputHidden id="lat" value="#{restaurant.lat}" />
<h:inputHidden id="lng" value="#{restaurant.lng}" />
<h:commandButton value="Add"
action="#{restaurant.submitInfo}"/>
当我删除标签<h:commandButton>
时,出现错误:
javax.servlet.ServletException: Property 'submitInfo' not found on type sig.Restaurant
javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
sig.CharsetFilter.doFilter(CharsetFilter.java:25)
不知道怎么解决,谢谢帮忙。