그림을로드하고 사용자가자를 수있는 페이지가 있습니다. 것은, (x1, y1)과 (x2, y2)의 값은 js이고 나는 그것들을 나의 백엔드에 필요로합니다. 어떻게 그것을 BackBean에 전달합니까?Java + JSF 2.0에서 jCrop으로 그림 자르기
<script type="text/javascript">
$(function(){
$('#jcroptarget').Jcrop({
trackDocument: true,
onChange: showCoords,
onSelect: showCoords,
aspectRatio: 1
});
});
function showCoords(c)
{
$('#x').val(c.x);
$('#y').val(c.y);
$('#x2').val(c.x2);
$('#y2').val(c.y2);
$('#w').val(c.w);
$('#h').val(c.h);
};
</script>
<div>
<label>X1 <input type="text" name="x" id="x" size="4" /></label>
<label>Y1 <input type="text" name="y" id="y" size="4" /></label>
<label>X2 <input type="text" name="x2" id="x2" size="4" /></label>
<label>Y2 <input type="text" name="y2" id="y2" size="4" /></label>
<label>W <input type="text" name="w" id="w" size="4" /></label>
<label>H <input type="text" name="h" id="h" size="4" /></label>
</div>
당신은에 대한 FAQ를 읽어 약간의 시간이 걸릴 수도 있습니다 귀하의 질문/답변 서식을 지정하십시오. 코드는 ">"로 포맷해서는 안되며 대신 적어도 4 칸만큼 들여 쓰기해야합니다. "편집"보기에서 ** {} ** 가제트를 사용하여이 작업을 수행 할 수 있습니다. – Pointy
지금 잘 보입니까? – pringlesinn
그래, 그게 훨씬 좋네요 :-) 나는 아직도 실제 질문에 대해 생각하고 있습니다. – Pointy